<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!--<meta name="viewport" content="width=device-width, initial-scale=1">-->
    <title>文章</title>
    <link href="{ $smarty.const.__CSS__ }/bootstrap.min.css" type="text/css" rel="stylesheet"/>
    <link href="{ $smarty.const.__CSS__ }/index-index.css" type="text/css" rel="stylesheet"/>
    <script src="{ $smarty.const.__JS__ }/jquery-3.2.1.min.js"></script>
    <script src="{ $smarty.const.__JS__ }/bootstrap.min.js"></script>
</head>
<body>

<nav class="navbar navbar-default" style="height: 120px;background: linear-gradient(to right,#408ed8,#46A7F7)">
    <div class="container">
        <div class="navbar-header">
            <p class="middle-title">飞鱼文章</p>
        </div>
        <div class="collapse navbar-collapse" style="margin-left: 230px">
            <a href="{$smarty.const.__APP__}" class="btn menu-link" {if $smarty.const.CONTROLLER eq "Index"}id="menu-active"{/if}>首 页</a>
            {foreach from="$cateData" item="v"}
            <a href="{$smarty.const.__APP__}?c=Category&cid={$v.cid}" class="btn menu-link" {if $smarty.get.cid eq $v.cid}id="menu-active"{/if} >{$v.cname}</a>
            {/foreach}
        </div>
    </div>
</nav>